<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
use Illuminate\Support\Facades\Route;

Route::post('/upload-img/{id}','Common\ComController@uploadImg'); //上传图片

Route::namespace('Admin')->group(function(){
    Route::get('/', function () {return view('vue');});
    Route::get('/yzm','IndexController@yzm');
    Route::post('/login-act','IndexController@loginAct');
    Route::post('/menu','IndexController@adminMenu');
    Route::post('/config-page','SettingController@configPage');
    Route::post('/web-set','SettingController@webSet');
    Route::post('/admins-list','SettingController@adminsList');
    Route::post('/admins-edit','SettingController@adminsEdit');
    Route::post('/admins-save','SettingController@adminsSave');
    Route::post('/admins-del','SettingController@adminsDel');
    Route::post('/roles-list','SettingController@rolesList');
});

